#include <stdio.h>
#include <stdlib.h>
#include <GL/freeglut.h>

#define kWindowWidth    640
#define kWindowHeight	480

//must be compiled with -lglut flag for freeglut

GLvoid Draw(void)
{

  glLoadIdentity();

  glTranslatef(1.5f,0.0f,-6.0f);

  glBegin(GL_TRIANGLES);
    glVertex3f(0.0f,1.0f,0.0f);
    glVertex3f(1.0f,-1.0f,0.0f);
    glVertex3f(-1.0f,-1.0f,0.0f);
  glEnd();

  glTranslatef(3.0f,0.0f,0.0f);
  
  glBegin(GL_QUADS);
    glVertex3f(-1.0f, 1.0f, 0.0f);				// Top Left
    glVertex3f( 1.0f, 1.0f, 0.0f);				// Top Right
    glVertex3f( 1.0f,-1.0f, 0.0f);				// Bottom Right
    glVertex3f(-1.0f,-1.0f, 0.0f);				// Bottom Left
  glEnd();
}


int main(int argc, char **argv) 
{
	glutInit(&argc, argv);

	glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA);

	glutInitWindowPosition(100,100);

	glutCreateWindow("");

	glutFullScreen();

	glutDisplayFunc(Draw);

	glutMainLoop();

	return 0;
}



